package WWW.SST.LIB;

/** 
 Html_Create ��ժҪ˵����
*/
public class Html_Create
{
	public Html_Create()
	{
		//
		// TODO: �ڴ˴���ӹ��캯���߼�
		//
	}

	public final void Creat_BZ()
	{
		Html_ZS html = new Html_ZS();
		String[][] arr_q = html.all_qh();
		String[] arr_str = html.BZ_Html(arr_q);
				BZ_5X(arr_str);
				BZ_3X(arr_str);
				BZ_2X(arr_str);
				BZ_1X(arr_str);
				ZX_fw(arr_str);
				ZX_df(arr_str);
				ZX_bd(arr_str);
	}

	private void BZ_5X(String[] arr_html)
	{
		String stra = "��׼5��Ͷע";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"qian\" style=\"float:left; width:161px\">" + arr_html[0] + "</div>\n";
		strb += "<div id=\"shi\" style=\"float:left; width:161px\">" + arr_html[1] + "</div>\n";
		strb += "<div id=\"bai\" style=\"float:left; width:161px\">" + arr_html[2] + "</div>\n";
		strb += "<div id=\"shi\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_bz5x.html", ohtml(stra, strb, 1000));
	}
	private void BZ_3X(String[] arr_html)
	{
		String stra = "��׼3��Ͷע";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"bai\" style=\"float:left; width:161px\">" + arr_html[2] + "</div>\n";
		strb += "<div id=\"shi\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("zs_bz3x.html", ohtml(stra, strb, 690));
	}
	private void BZ_2X(String[] arr_html)
	{
		String stra = "��׼2��Ͷע";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"shi\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_bz2x.html", ohtml(stra, strb, 540));
	}

	private void BZ_1X(String[] arr_html)
	{
		String stra = "��׼1��Ͷע";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_bz1x.html", ohtml(stra, strb, 400));
	}
	private void ZX_fw(String[] arr_html)
	{
		String stra = "2����ѡ��λ";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_2xfw.html", ohtml(stra, strb, 540));
	}
	private void ZX_df(String[] arr_html)
	{
		String stra = "2����ѡ����ʽ";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_2xdf.html", ohtml(stra, strb, 540));
	}
	private void ZX_bd(String[] arr_html)
	{
		String stra = "2����ѡ������";
		String strb = "<div id=\"wan\" style=\"float:left\">" + arr_html[5] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[3] + "</div>\n";
		strb += "<div id=\"ge\" style=\"float:left; width:161px\">" + arr_html[4] + "</div>\n";
		Html_ZS.Creat_Html("/zoushi/zs_2xbd.html", ohtml(stra, strb, 540));
	}

	private String ohtml(String str1, String str2, int width)
	{
		String str_h = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
		str_h += "<HTML xmlns:v=\"urn:schemas-microsoft-com:vml\">\n";
		str_h += "<HEAD>\n";
		str_h += "<title>" + str1 + " - ʱʱ����</title>\n";
		str_h += "<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">";
		str_h += "<link href=\"css/css.css\" rel=\"stylesheet\" type=\"text/css\">\n";
		str_h += "<script language=\"javascript\" src=\"js/Line.js\"></script>\n";
		str_h += "<style type=\"text/css\"> \n";
		str_h += "BODY { FONT-SIZE: 12px; MARGIN: 0px; BACKGROUND-COLOR: #450945 }\n";
		str_h += ".div1{ margin-left:auto; margin-right:auto; width:" + width + "px;overflow:visible;}\n";
		str_h += " v\\:* { BEHAVIOR: url(#default#VML) } ";
		str_h += "</style>\n";
		str_h += "</HEAD>\n";
		str_h += "<body>\n";
		str_h += "<div align=\"center\">\n";
		str_h += "<table width=\"940\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#450945\">";
		str_h += "<tr>\n";
		str_h += "<td width=\"940\" height=\"30\" align=\"center\" valign=\"middle\" class=\"t14\"><font color=\"#ffcc00\"><strong>ʱʱ�ʣ�" + str1 + "������ͼ</strong></font></td>\n";
		str_h += "</tr>";
		str_h += "<tr><td align=\"center\" valign=\"middle\" class=\"t14\">";
		str_h += "<select name=\"select\" id=\"zs\" onChange=\"schange(this.options[this.selectedIndex].value)\">";
		str_h += "<option selected>�鿴��������ͼ</option><option value=\"zs_bz5x.html\">��׼5��</option>";
		str_h += "<option value=\"zs_bz3x.html\">��׼3��</option><option value=\"zs_bz2x.html\">��׼2��</option>";
		str_h += "<option value=\"zs_bz1x.html\">��׼1��</option><option value=\"zs_3xhz.html\">3�Ǻ�ֵ</option>";
		str_h += "<option value=\"zs_2xhz.html\">2�Ǻ�ֵ</option><option value=\"zs_2xfw.html\">2�Ƿ�λ</option>";
		str_h += "<option value=\"zs_2xbd.html\">2�ǰ���</option><option value=\"zs_2xbdian.html\">2�ǰ���</option>";
		str_h += "<option value=\"zs_2xdf.html\">2�ǵ���</option><option value=\"zs_dxds.html\">��С��˫</option>";
		str_h += "</select></td></tr>";
		str_h += "</table>";
		str_h += "</div>";
		str_h += "<div class=\"div1\">";
		str_h += str2;
		str_h += "</div>\n";
		str_h += "<SCRIPT src=\"js/urchin.js\" type=\"text/javascript\">\n";
		str_h += "</SCRIPT>\n";
		str_h += "<SCRIPT type=\"text/javascript\">_uacct = \"UA-1464172-1\";urchinTracker();</SCRIPT>\n";
		str_h += "</body>\n";
		str_h += "</HTML>\n";
		return str_h;
	}
}